package cn.edu.zzuli.wechat.user.service;

import cn.edu.zzuli.model.entity.OfferOrder;
import cn.edu.zzuli.model.vo.order.AllOfferOrderQueryVo;
import cn.edu.zzuli.model.vo.order.ConditionQueryVo;
import cn.edu.zzuli.model.vo.all.SelectQuery;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpSession;
import java.util.Map;

public interface OfferOrderService extends IService<OfferOrder> {

    //用户发布订单
    int addOfferOrder(OfferOrder order, HttpSession session);

    //条件查询所有用户的订单
    Map<String, Object> queryOfferList(AllOfferOrderQueryVo allOfferOrderQueryVo);

    //接单排行榜
    Map<String, Object> queryByOrderCount(SelectQuery selectQuery);

    //用户自己的订单列表
    Map<String, Object> queryOfferOrderList(AllOfferOrderQueryVo queryVo);

    //根据状态查询自己发布的订单
    Map<String, Object> queryOfferOwnOrder(SelectQuery selectQuery, Integer status, Integer uid);

    //多条件筛选
    Map<String, Object> choose(ConditionQueryVo conditionQueryVo, SelectQuery selectQuery);

    //确认订单
    void sureFinish(Integer id, String finishTime,Integer uid);


    void edit(OfferOrder order);
}
